package com.sbxBase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.validations.RequiredField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import java.util.Date;


@Data
@TableName("friends")
public class Friends {

    @TableId(type = IdType.ASSIGN_UUID)
    private String  id;

    @ApiModelProperty("用户id")
    private String selfId;

    @ApiModelProperty(required = true,value = "好友id")
    @NotEmpty(message = "好友id名称不能为空",groups = RequiredField.class)
    private String friendId;


    @ApiModelProperty("添加方式")
    @NotEmpty(message = "添加方式不能为空",groups = RequiredField.class)
    private String addMethod;

    @ApiModelProperty("添加时间")
    @NotEmpty(message = "添加时间不能为空",groups = RequiredField.class)
    private Date created;

}
